﻿using BCDto.WeChatComponent.WeChatUser;
using BCDto.WxLogin.WebLogin;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCService.WeChatComponent.WeChatLoginService
{
    /// <summary>
    /// 微信登录
    /// </summary>
    public interface IWeChatLoginService
    {
        /// <summary>
        /// 获取微信AccessToken
        /// </summary>
        /// <param name="code">微信扫码Code</param>
        /// <param name="isSim">是管理端</param>
        /// <returns></returns>
        WxLoginWebAccessTokenDto GetAccessToken(string code, bool isSim);
        /// <summary>
        /// 获取微信用户信息
        /// </summary>
        /// <param name="accessToken">微信扫码accessToken</param>
        /// <param name="unionId">微信平台唯一标识</param>
        /// <returns></returns>
        WeChatUserInfoDto GetUserInfo(string accessToken, string unionId);
    }
}
